package com.spacearcade.common.model.impl;

import java.util.Collections;
import java.util.Map;

import com.spacearcade.common.model.IModel;

public class SimpleModel implements IModel {
	
	private final Map<String, String> properties;
	
	public SimpleModel(Map<String, String> properties) {
		this.properties = Collections.unmodifiableMap(properties);
	}

	public String getProperty(String propertyName) {
		return properties.get(propertyName);
	}
	
	@Override
	public String toString() {
		return "Model: "+properties.toString();
	}

}
